.class Limoblife/applist/AppListActivity$2;
.super Landroid/os/Handler;
.source "AppListActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Limoblife/applist/AppListActivity;->checkNewVersion(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field private final synthetic val$context:Landroid/content/Context;

.field private final synthetic val$p:Landroid/app/ProgressDialog;


# direct methods
.method constructor <init>(Landroid/content/Context;Landroid/app/ProgressDialog;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Limoblife/applist/AppListActivity$2;->val$context:Landroid/content/Context;

    iput-object p2, p0, Limoblife/applist/AppListActivity$2;->val$p:Landroid/app/ProgressDialog;

    .line 62
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 3
    .parameter "m"

    .prologue
    .line 64
    iget-object v0, p0, Limoblife/applist/AppListActivity$2;->val$context:Landroid/content/Context;

    invoke-static {v0}, Limoblife/applist/AppListActivity;->bootCheckNewVersion(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 65
    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Limoblife/applist/AppListActivity$2;->val$context:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 66
    const-string v1, "There is no new version available for upgrade."

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 67
    const-string v1, "Update Info"

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 68
    const-string v1, "OK"

    new-instance v2, Limoblife/applist/AppListActivity$2$1;

    invoke-direct {v2, p0}, Limoblife/applist/AppListActivity$2$1;-><init>(Limoblife/applist/AppListActivity$2;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 72
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 74
    :cond_0
    iget-object v0, p0, Limoblife/applist/AppListActivity$2;->val$p:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    .line 75
    return-void
.end method
